package com.haoshuang.zhouzhoubang.model.bean

data class OrderBean(
    val countdown: Long,
    val id: Int,
    var is_overtime: Int,
    var is_need_pay: Int,
    var is_sign: Int,
    val is_team: String,
    val residue_num: String,
    val cate_id: String,
    val lat: String,
    val lng: String,
    val show_status: String,
    val meal_end_time: String,
    val hourly_worker_time: String,
    val mark: String,
    val order_id: String,
    val refund_id: String,
    val residue_time: String,
    val is_residuetime: Int,
    val define_second: Int,
    val progress: Int,
    val is_deal_status: Int,
    val pay_price: String,
    val prepayments_amount: String?, // 预付款金额
    val pro_id: Int,
    val real_name: String,
    val service_id: Int,
    val service_time: String,
    val finish_time: String,
    val is_confirm: String,
    val status: String,
    val cost_list: ArrayList<OrderDetail2Bean.CostList>,
    val store_name: String,
    val user_address: String,
    val base_address: String,
    val user_avatar: String,
    val user_phone: String,
    val user_status: String,
    val paid: String,
    var is_done_check: String,
    var reward_amount: String?, // 奖励金
    var base_reward_amount: String?, // 奖励金  总额
    var nighttime_amount: String?, // 夜间服务费
    // 保险相关字段
    val deduct_insurance_amount: String?, // 保险扣除额度
    val insurance_status: String?,//保险状态 0未购买 1已购买 2已过期
    val insurance_expire_time: String?, // 保险过期时间
    val insurance_image: String?, // 保险保单图片
    val is_platform_order: Int?, // 1 平台订单
    val hexiao_type: Int?, // 2 是核销订单
    val team_member: MutableList<OrderTeamMember>?, // 门店成员列表

    // 分成
    val team_price: TeamPrice?,
    val total_num: Int, // 商品数量

    val key_areas: String?, // 重点服务区域

    val is_cart_order: Int?, //是否是购物车订单
    var order_goods:MutableList<OrderGoodsBean>
){
    data class OrderTeamMember(
        val uid: String,
        val avatar: String,
        val nickname: String,
        val team_team_leader: Int, // 1 负责人
    )

    data class TeamPrice(
        val team_price: String, // 团队长
        val team_leader_price: String,// 负责人
        val team_member_price: String,// 订单成员
        val self_price: String,// 自己实际分成
    )
}